package com.spzx.product.service.impl;

import com.spzx.common.security.annotation.GuiGuCache;
import com.spzx.product.api.domain.vo.SkuStockVo;
import com.spzx.product.domain.SkuStock;
import com.spzx.product.mapper.SkuStockMapper;
import com.spzx.product.service.ISkuStockService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 商品sku库存表 服务实现类
 * </p>
 *
 * @author lee
 * @since 2024-07-15
 */
@Service
public class SkuStockServiceImpl extends ServiceImpl<SkuStockMapper, SkuStock> implements ISkuStockService {

    @Override
    @GuiGuCache(prefix = "SkuStock:")
    public SkuStockVo getSkuStock(Integer skuId) {
        return baseMapper.getSkuStock(skuId);
    }
}
